/*
 * @文件描述: 示波器模块的事件
 * @版本: 
 * @作者: 周晨阳
 * @Date: 2021-01-20 14:04:13
 */
#ifdef GUI_UCGUI

#include <stddef.h>
#include "GUI.h"
#include "DIALOG.h"
#include "OscilloscopePre.h"
#include <stdio.h>
#include <stdlib.h>
#include "measureWindowUI.h"
#include "typedef.h"

extern void onViewMenuItemClicked(WM_MESSAGE *pMsg, uint8_t itemNum);
//auto按钮
void OnButton1Clicked(WM_MESSAGE *pMsg)
{
    onViewMenuItemClicked(pMsg, 0);
    // M_IncreaseSamplingRate();
    // printf("IncreaseSamplingRate\n");
}
//run/stop按钮
void OnButton2Clicked(WM_MESSAGE *pMsg)
{
    onViewMenuItemClicked(pMsg, 1);
    // M_DecreaseSamplingRate();
    // printf("DecreaseSamplingRate\n");
    //M_Run_Stop();
}
//measure按钮
void OnButton3Clicked(WM_MESSAGE *pMsg)
{
    onViewMenuItemClicked(pMsg, 2);
    //showMeasureWin();
    //createMeasureWin(0);
}
//cursor按钮
void OnButton4Clicked(WM_MESSAGE *pMsg)
{
    onViewMenuItemClicked(pMsg, 3);
}
//home按钮
void OnButton5Clicked(WM_MESSAGE *pMsg)
{
    onViewMenuItemClicked(pMsg, 4);
}
#endif